﻿@model DiyBook.Models.Borrow

@{
    ViewBag.Title = "BBorrow";
}

<h2>BBorrow</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("AddBorrow","Borrow",FormMethod.Post)) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Borrow</legend>

        
        
        <div class="display-label">  
            @Html.LabelFor(model => model.ISBN)
        </div>

        <div class="display-field">
            @Html.TextBox("ISBN", @Html.ViewData["ISBN"], new { READONLY = "readonly" })
        </div>

        <div class="display-label">
            @Html.LabelFor(model => model.bookName)
        </div>

        <div class="display-field">
            @Html.TextBox("bookName", @Html.ViewData["bookName"], new { READONLY = "readonly" })
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.userName)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.userName)
            @Html.ValidationMessageFor(model => model.userName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.editor)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.editor)
            @Html.ValidationMessageFor(model => model.editor)
        </div>

        <div class="display-label">
            @Html.LabelFor(model => model.addTime)
        </div>

        <div class="display-field">
            @Html.TextBox("addTime", @Html.ViewData["addTime"], new { READONLY = "readonly" })
        </div>

        <p>
            <input type="submit" value="Create" />
            <output type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
